package cn.entity.master;

import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

public class Boss1 extends JPanel implements masterImp{
    public static final int hide=0;
    public static final int show=1;
    private int Hp;
    private int x;
    private int y;
    private BufferedImage image;
    public Boss1() throws IOException {
        x=450;
        y=-500;
       image= ImageIO.read(new File("img/Boss/boss1.png"));
       this.Hp=500;
    }

    public BufferedImage getImage() {
        return image;
    }

    @Override
    public int getHitWidth() {
        return 0;
    }

    @Override
    public void setY(int y) {

    }

    public boolean step(){
        if(y!=50){
            y+=10;
            return false;
        }
return true;
    }
    public void paint(Graphics g){
        g.drawImage(image,x,y,null);
    }
    @Override
    public int getX() {
        return x;
    }

    @Override
    public int getY() {
        return y;
    }

    @Override
    public int getIndex() {
        return 0;
    }

    @Override
    public void setIndex(int index) {

    }

    @Override
    public int getImageLength() {
        return 0;
    }

    @Override
    public void setImage(int index) {

    }
}

